package tom.spring.cloud.amqp.rabbitmq.config;

import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 发送配置，交换机类型Direct，1对1
 * @author ZHUFEIFEI
 */
@Configuration
public class DirectConf {

    @Bean(name = "hello")
    public Queue hello() {
        return new Queue("hello");
    }
}